#ifndef BoostedClassifier_H_
#define BoostedClassifier_H_
#include "./Classifier.h"

namespace findobject{
class BoostedClassifier: public Classifier {
public:
	/*FeaturePatch ** alpha_weight;
	FeaturePatch ** classifiers;
	FeaturePatch ** used_classifiers;
	FeaturePatch ** nr_classifiers;*/
	Classifier ** classifiers;
	float * alpha_weight;
	int * used_classifiers;
	int nr_classifiers;

	BoostedClassifier(char * filename);
	BoostedClassifier(char * classifiers_path, char * responses_path, char * save_path, int nr_regressors_stop);
	~BoostedClassifier();
	void train(FeatureResponse ** target, FeatureResponse ** data,float * data_weights, int nr_data);
	FeatureResponse * evaluate(IntegralImageFeature * iifeat,float w, float h,float item_size);
	FeatureResponse * evaluate(FeatureResponse * data);
	void save(char * path);
	bool load(char * path);

};
};
#endif
